/**
 * @File		: Main.java
 * @Subject		: Main entry point to the program
 * @author 		: Isaac Parenteau	locus2k@gmail.com
 * @Date		: October 12th, 2011
 * @Licence		: Licensed under the GPU LGPL
 */
package mil.cdc.main;

import mil.cdc.windows.DebugWindow;
import mil.cdc.windows.ErrorWindow;
import mil.cdc.windows.MainWindow;

public class Main {

	
	public static DebugWindow debugWindow = new DebugWindow();
	public static ErrorWindow errorWindow = new ErrorWindow();
	private static boolean enabled = true;
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		if (args != null && args.length > 0)
			enabled = Boolean.parseBoolean(args[0]);
		if (enabled)
			debugWindow.setVisible(true);
		
		MainWindow mw = new MainWindow();
		mw.start();
	}
	
	public static void close() {
		debugWindow.dispose();
		errorWindow.dispose();
	}

}
